<div id="content">
    <div id="title_content">Images</div>
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    </div>
    <?php endif; ?>
    <form method="POST" action="<?php echo site_url('admin_image/delete_multi_images')?>"  onsubmit="return go();">
            <table class="list" width="100%">
                <thead>
                    <tr>
                        
                        <th width="70%"><?php echo "Image" ?></th>
                                                                      
                        <th colspan="1">Action</th>
                    </tr>
                </thead>
                <tbody>
                <?php 
                if(isset($images_data) && !empty($images_data)):
                foreach($images_data as $aRows):
                	$image_path = "./assets/images/images/thumbs/".$aRows['image_name'];
                	if($aRows['image_name'] != NULL){
                		if(file_exists($image_path)){
                			$image_path = base_url()."assets/images/images/thumbs/".$aRows['image_name']; 
                		}else{
                			$image_path = base_url()."assets/images/no_photo/no_photo.jpg";	
                		}
                		
                	}else{
                		$image_path = base_url()."assets/images/no_photo/no_photo.jpg";
                	}
                ?>
 			
                    <tr>
                    
            			<td width=70%><img src="<?php echo $image_path;?>" alt="" width="500px" height="346px"/></td>
                     
                        <td width="30px"><a class="confirm_delete" href="<?php echo site_url('admin_image/delete_image/' . $aRows['id']) ?>" title="Delete">Delete</a></td>
                    	
                    </tr>
                <?php endforeach; ?>
                <?php endif; ?>
                </tbody>
            </table>
           
            <div class="delete_button">
            	
                <table width="100%">
                    <tr>
                      
                        <td align="right"><?php echo $pagination; ?></td>
                        
                </tr>
            </table>
        </div>
        </form>
        <!--END delete_button-->
    
</div>
<!--END content-->
